<!DOCTYPE>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="stylesheet" type="text/css" href="/css/login.css" />
<script type="text/javascript" src="/js/login.js"></script>
<title>登录界面</title>
</head>
<body>
	<h2>任务管理系统</h2>
	<form th:action="@{/login}" method="post" onsubmit="return checkForm()">
		<h4>Login</h4>
		<p>
			<p>
			<span>账号：</span>
			<input type="text"  name="username" class="num" id="name"  onfocus="nameFocus()" onkeyup="namekeyup()" onblur="nameBlur()">
			<div id="nameError">&nbsp;</div>
		</p>
		<p>
			<span>密码：</span>
			<input type="password" name="password" class="num" id="password"  onfocus="passwordFocus()" onkeyup="passwordkeyup()" onblur="passwordBlur()">
			<div id="passwordError">&nbsp;</div>
		</p>
		<p>
			<span>身份：</span>
			<select name="flag">
				<option  value="系统管理员">系统管理员</option>
				<option  value="主管">主管</option>
				<option  value="员工">员工</option>
			</select>
		</p>
		<br/>
		<p class="bt">
			<input type="submit" value="登录" class="bt01">
			<input type="reset" value="取消" class="bt02">
		<p>
		<br/>
		<p class="error" th:text="${loginErrorMsg}"></p>
	</form>
</body>
</html>